class Scheduler:
    def __init__(self):
        self.thread_list = []
        self.window = None
        self.terminate = False


    def start(self, window,fn_start):
        self.window = window
        self.terminate = False
        for index in range(window.table.rowCount()):
            title = window.table.item(index, 0).text().strip()
            from my_thread import TaskThread
            t = TaskThread(index)
            self.thread_list[index] = t
            t.start()
    def stop(self):
        pass



SCHEDULER = Scheduler()